from odoo import api, fields, models

ICON_CATEGORY = [('parcel', '包裹'), ('other', '其他')]


class RpIcon(models.Model):
    _name = "rp.icon"
    _description = '图标'

    name = fields.Char(string='名称', copy=False)
    category = fields.Selection(string='图标类别', selection=ICON_CATEGORY, copy=False)
    unselected_icon = fields.Binary(string='Unselect', copy=False)
    selected_icon = fields.Binary(string='Selected', copy=False)
